package com.xxxt.hrs.service.impl;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.xxxt.dao.TeacherMapper;
import com.xxxt.entity.Teacher;
import com.xxxt.hrs.service.TeacherService;
@Service
@Transactional
public class TeacherServiceImpl implements TeacherService{
@Autowired
private TeacherMapper teacherMapper;

@Override
public void cancelRelationshipByTno(String tno) {
	teacherMapper.teacherCancelRelationshipWithStudent(tno);
}

@Override
public PageInfo<Teacher> queryWaitingRegisterTeachersWithPage(int pageNum, int pageSize) {
	PageHelper.startPage(pageNum, pageSize);
	List<Teacher> teacherList = teacherMapper.queryWaitingRegisterTeachers();
	PageInfo<Teacher> teacherPage=new PageInfo<Teacher>(teacherList);
	return teacherPage;
}



}
